import java.util.LinkedList;
import java.util.List;


public class DealerBox {
	private int score=0;
	private boolean insurense=false;
	private boolean surrender=false;
	private boolean burned=false;
	private List<Card> dealerCards= new LinkedList<Card>();
	
	public List<Card> getDealerCards() {
		return dealerCards;
	}
	public void setDealerCards(Card dealerCard) {
		dealerCards.add(dealerCard);
		score+=dealerCard.getScore();
		if (dealerCards.size() == 1) {
			switch(score) {
				case 10: {
					surrender=true;
					break;
				}
				case 11: {
					insurense=true;
					break;
				}
			}
			
		}
	}
	public int getScore() {
		return score;
	}
	@Override
	public String toString() {
		String res="";
		for (int i=0; i<dealerCards.size(); i++) {
		res=res+" "+dealerCards.get(i).toString();	
		}
		res+="|"+String.valueOf(getScore());
		return res;
	}
	public boolean isBurned() {
		return burned;
	}
	public void setBurned(boolean burned) {
		this.burned = burned;
	}
	
	
}
